import { UILayer } from "./UILayer";
import { Global } from "../../../com/gengine/global/Global";
import { WindowLayer } from "./WindowLayer";
import { CursorManager } from "./CursorManager";
import { MsgManager } from "./MsgManager";
import { RightTopUILayer } from "./RightTopUILayer";
//class LayerManager
    
    export  class LayerManager
    {
        

        public static init(): void
        {
            LayerManager.sceneLayer = new UILayer();
            LayerManager.sceneLayer.tabChildren = false;
            Global.application.addChild(LayerManager.sceneLayer);
            LayerManager.newFlowersLayer = new UILayer();
            Global.application.addChild(LayerManager.newFlowersLayer);
            LayerManager.uiLayer = new UILayer();
            LayerManager.uiLayer.tabChildren = false;
            LayerManager.uiLayer.mouseEnabled = false;
            Global.application.addChild(LayerManager.uiLayer);
            LayerManager.issmBtnLayer = new UILayer();
            LayerManager.issmBtnLayer.tabChildren = false;
            Global.application.addChild(LayerManager.issmBtnLayer);
            LayerManager.windowLayer = new WindowLayer();
            LayerManager.windowLayer.tabChildren = false;
            Global.application.addChild(LayerManager.windowLayer);
            LayerManager.topLayer = new UILayer();
            LayerManager.topLayer.tabChildren = false;
            Global.application.addChild(LayerManager.topLayer);
            LayerManager.popupLayer = new UILayer();
            LayerManager.popupLayer.tabChildren = false;
            Global.application.addChild(LayerManager.popupLayer);
            LayerManager.guideLayer = new UILayer();
            LayerManager.guideLayer.tabChildren = false;
            Global.application.addChild(LayerManager.guideLayer);
            LayerManager.alertLayer = new UILayer();
            LayerManager.alertLayer.tabChildren = false;
            Global.application.addChild(LayerManager.alertLayer);
            LayerManager.dragLayer = new UILayer();
            LayerManager.dragLayer.tabChildren = false;
            Global.application.addChild(LayerManager.dragLayer);
            CursorManager.init(Global.stage);
            MsgManager.addBroadStage(LayerManager.windowLayer);
            MsgManager.addIssmNoticeItemPanelStage(Global.application);
            LayerManager.msgTipLayer = new UILayer();
            LayerManager.msgTipLayer.tabChildren = false;
            Global.application.addChild(LayerManager.msgTipLayer);
            LayerManager.toolTipLayer = new UILayer();
            LayerManager.toolTipLayer.tabChildren = false;
            Global.application.addChild(LayerManager.toolTipLayer);
            LayerManager.flowersLayer = new UILayer();
            Global.application.addChild(LayerManager.flowersLayer);
            LayerManager.highestLayer = new UILayer();
            Global.application.addChild(LayerManager.highestLayer);
            LayerManager.rightTopUILayer = new RightTopUILayer();
            LayerManager.rightTopUILayer.show();
            return;
        }

        public static /* var */sceneLayer: UILayer;

        public static /* var */newFlowersLayer: UILayer;

        public static /* var */uiLayer: UILayer;

        public static /* var */rightTopUILayer: RightTopUILayer;

        public static /* var */windowLayer: WindowLayer;

        public static /* var */topLayer: UILayer;

        public static /* var */popupLayer: UILayer;

        public static /* var */guideLayer: UILayer;

        public static /* var */alertLayer: UILayer;

        public static /* var */dragLayer: UILayer;

        public static /* var */toolTipLayer: UILayer;

        public static /* var */msgTipLayer: UILayer;

        public static /* var */issmBtnLayer: UILayer;

        public static /* var */flowersLayer: UILayer;

        public static /* var */highestLayer: UILayer;
    }
